<%@page import="tianqi.entity.UserY"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	System.out.println("basePath: "+basePath);
	
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>田奇-我的晒单</title>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/myShareOrder.css">
    	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    	<script type="text/javascript" charset="utf-8" src="js/jquery-1.11.3.js"></script>
    	<script type="text/javascript" charset="utf-8" src="js/bootstrap.min.js"></script>
	
	</head>
<body>
<!--  style="background-image:url(img/bannerbg.png);" -->
	<div id="section" class="clear">
		<div>
			<h1>尊敬的  ${user.uname } 您好，你的晒单记录如下:</h1>
		</div>
		<c:choose>
   		<c:when test="${sos != null }"> 
   				<div id="msgArea" class="lf clear">
					
			<c:forEach items="${sos}" var="s">
				<div id="users" class="clear lf">
					<div class="clear lf">
								<div class="mark1 lf">
	 		<img id="touxiang" width="45" height="45" style="border-radius:50%;" src="${user.txImg!=null?user.txImg:'1' }"></img>
	 	</div>
        						<p class="lf" style="margin-top: -1px;">${user.uname } </p>
							</div>
							<div class="lf ma">
								<p>${s.soProname }</p>
								<div id="call">
								${s.soMsg }
								</div>
								
								<ul class="imgs clear">
								<c:choose>
   									<c:when test="${s.split != null }"> 
									<c:forEach items="${s.split}" var="i">
									<li><img src="${i }" width="80" height="80"></li>
									</c:forEach>
									</c:when>
								</c:choose>
								</ul>
								<ul class="dates clear rt">
									<li>商品: ${s.soProname }</li>
									<li>规格: ${s.soSpec }</li>
									<li style="margin-left:15px;"> ${s.soTime }</li>
								</ul>
							</div>
							
						</div>
						
						</c:forEach>
					</div>
   						</c:when>
   						
   						<c:otherwise>
   						
   							<h1>您的 晒单信息为空</h1>
   						
   						</c:otherwise>
   						
   						
					</c:choose>
	</div>

	
					

</body>
</html>